package com.ja.inquiry.mapper;

import com.ja.inquiry.pojo.PlanClassSelectVo;
import com.ja.inquiry.pojo.SupplierSelectVo;
import com.ja.inquiry.pojo.Inquiry;
import com.ja.inquiry.pojo.Supplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by 11936 on 2019/4/28.
 */

@Mapper
public interface SupplierMapper {

    @Select("select id,partnerName,partnerCode,legalPersonId from supplier where legalPersonId=#{legalPersonId}")
    List<Supplier> queryByLegalPerson(Integer legalPersonId);

    Integer querySupplierCount(SupplierSelectVo supplierSelectVo);

    List<Supplier> selectSupplier(SupplierSelectVo supplierSelectVo);

    List<Inquiry> queryByIdExamine(String requestForQuotationId);

    List<Inquiry> queryByIdPerson(Integer userid);
    @Select("select ")
    List<Inquiry> queryByForQuotationId(String requestForQuotationId);

    List<PlanClassSelectVo> queryPlanClass(PlanClassSelectVo planClassSelectVo);
}
